package com.example.administrator.liangcang.callback;

import com.example.administrator.liangcang.daren.bean.DarenEntity;
import com.example.administrator.liangcang.good.bean.GoodEntity;
import com.example.administrator.liangcang.message.bean.AssormentFragmentEntity;
import com.example.administrator.liangcang.message.bean.AuthorFragmentEntity;
import com.example.administrator.liangcang.store.bean.brand.BrandJsonEntity;
import com.example.administrator.liangcang.store.bean.home.JsonEntity;
import com.example.administrator.liangcang.store.bean.themebean.ThemeEntity;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017.2.8.
 */

public interface LiangCangService {
    //http://mobile.iliangcang.com/goods/shopSpecial?app_key=Android&count=10&page=1&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0
    @GET("goods/shopSpecial?app_key=Android&count=10&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0")
    Call<ThemeEntity> getThemeEntity(@Query("page") int page);
    // 杂志中的分类http://mobile.iliangcang.com/topic/magazineCatList?app_key=Android&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0
   @GET("topic/magazineCatList?app_key=Android&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0")
    Call<AssormentFragmentEntity> getAssormentFragmentEntity();
    //杂志中的作者http://mobile.iliangcang.com/topic/magazineAuthorList? app_key=Android&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0
    @GET("topic/magazineAuthorList? app_key=Android&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0")
    Call<AuthorFragmentEntity> getAuthorFragmentEntity();
   //达人
   // 默认 http://mobile.iliangcang.com/user/masterList?app_key=Android&count=18&page=1&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0
    @GET("user/masterList?app_key=Android&count=18&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0")
   Call<DarenEntity> getDarenEntity(@Query("page") int page);
    //最多推荐
    //http://mobile.iliangcang.com/user/masterList?app_key=Android&count=18&orderby=goods_sum&page=1&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0
//最受欢迎
    //http://mobile.iliangcang.com/user/masterList?app_key=Android&count=18&orderby=followers&page=1&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0
//最新推荐
   // http://mobile.iliangcang.com/user/masterList?app_key=Android&count=18&orderby=action_time&page=1&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0
//最新加入
    //http://mobile.iliangcang.com/user/masterList?app_key=Android&count=18&orderby=reg_time&page=1&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0
    @GET("user/masterList?app_key=Android&count=18&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0")
    Call<DarenEntity> getDarenEntity2(@Query("page") int page,@Query("orderby") String orderby);
//分享
    //默认 http://mobile.iliangcang.com/goods/goodsShare?app_key=Android&count=10&page=1&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&type=0&v=1.0
    @GET("goods/goodsShare?app_key=Android&count=10&sig=47D2F0283AE0D2752370C2EC802CA37D%7C291548701493468&v=1.0")
    Call<GoodEntity> getGoodEntity(@Query("page") int page,@Query("type") int type);




    // 首页
    @GET("goods/newShopHome?")
    Call<JsonEntity> getHomeTotal (@Query("app_key") String app_key, @Query("sig") String sig, @Query("v") String v);

    // 品牌
    @GET("brand/brandList?")
    Call<BrandJsonEntity> getBrandTotal (@Query("app_key") String app_key, @Query("count") int count, @Query("page") int page, @Query("sig") String sig, @Query("v") String v);

    // 分类
   @GET("goods/goodsCategory?")
    Call<BrandJsonEntity> getClassifyTotal (@Query("app_key") String app_key, @Query("sig") String sig, @Query("v") String v);

}
